package com.swak.paxos.statemachine.system;

import java.io.Serializable;
import java.util.Set;

import com.swak.utils.Sets;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 系统状态:
 * 
 * 1. 节点集合
 * 
 * @author DELL
 */
@Getter
@Setter
@Accessors(chain = true)
@ToString
public class Systemx implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 乐观锁
	 */
	private long version = 0;

	/**
	 * 节点列表
	 */
	private Set<String> memberShips = Sets.newHashSet();
}
